package org.truenewx.tnxjee.service.transaction.annotation;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.*;

/**
 * 只读事务
 *
 * @author jianglei
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
// 可重复读：事务范围内，一致性快照读取
@Transactional(isolation = Isolation.REPEATABLE_READ, readOnly = true)
public @interface ReadTransactional {
}
